import http from '../../utils/request/request'


//分页查询企业投入品入库记录
export function getSupplyInfoBypage(size = 5, page = 1) {
    return http({
        url: `breed/supply/in/record/${size}/${page}`,
        method: 'get'
    })
}
//分页查询某个基地投入品入库记录
export function getSupplBaseInfoBypage(id,size=5,page =1){
    return http({
        url: `/breed/supply/in/record/base/${id}/${size}/${page}`,
        method: 'get'
    })
}
export function removeBatch(data) {
    return http({
        url: `/breed/supply/in/record/batch`,
        method: 'delete',
        data
    })
}
export function remove(id) {
    return http({
        url: `/breed/supply/in/record/${id}`,
        method: 'delete',
    })
}
export function addSupply(data) {
    return http({
        url: `/breed/supply/in/record/`,
        method: 'post',
        data
    })
}

//分页查询仓库投入品入库记录
export function getWarehousingInformationBypage(id,size = 5, page = 1) {
    return http({
        url: `/breed/supply/in/record/one/warehouse/${id}/${size}/${page}`,
        method: 'get'
    })
}

//分页查询仓库投入品出库记录
export function getDeliveryInformationBypage(id,size = 5, page = 1) {
    return http({
        url: `/breed/supply/out/record/one/warehouse/${id}/${size}/${page}`,
        method: 'get'
    })
}

//分页查询仓库投入品记录
export function getInventoryInformationBypage(id,size = 5, page = 1) {
    return http({
        url: `/breed/supply/management/one/warehouse/${id}/${size}/${page}`,
        method: 'get'
    })
}